#!/usr/bin/env python
# -*- coding: utf-8 -*-

# This project is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# 
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# This project is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with Tutoo Installer.  If not, see <http://www.gnu.org/licenses/>.


from PyQt4 import QtGui, QtCore
from warning_label import *

class Warning_Label(QtGui.QDialog):
	def __init__(self, parent=None):
		QtGui.QDialog.__init__(self, parent) if parent else QtGui.QDialog.__init__(self)
		self.ui = Ui_Dialog()
		self.ui.setupUi(self)

	def warning(self, text = ""):
		self.ui.label.setAlignment(QtCore.Qt.AlignHCenter)
		self.ui.label.setText(text)

if __name__ == "__main__":
	import sys
	app = QtGui.QApplication(sys.argv)
	ui = Warning_Message()
	ui.show()
	app.exec_()
